import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.*;

public class Main {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();;
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line ;
        while((line=br.readLine())!=null){
            if ("886".equals(line)){
                break;
            }
//            创建数据，并打包
            byte[] bys = line.getBytes();
            int length = bys.length;
            InetAddress byName = null;
            try {
                byName = InetAddress.getByName("192.168.8.103");
            } catch (UnknownHostException e) {
                throw new RuntimeException(e);
            }
            int port = 10086;
            DatagramPacket dp = new DatagramPacket(bys, length, byName, port);
//        发送数据
                ds.send(dp);
//        关闭发送端

        }
        ds.close();
    }
}